home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
prog
/
pclcjs.arj
/
GETBANV.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-29
|
684b
|
33 lines
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Author: Scott Sharkey Date: 03/20/90
*
* This program is released into the public domain, and no warranties
* of any kind apply. You may do whatever you wish with this code, but
* please leave this comment in your new code.
*
* Note: Turbo C 2.0 and/or MSC 5.1 should work.
*
*/
int get_banv(void)
{
char far* far* pch;
int j;
for (j = 0x60; j < 0x67; j++ ) {
pch = (char far* far*) (0x4 * j);
if ((*(*pch - 4) == 'B') && (*(*pch - 3) == 'A') && (*(*pch - 2) == 'N') && (*(*pch - 1) == 'V') ) {
return(j);
}
}
return(0);
}